\documentclass{article}
\begin{document}

\section{Tables}

\subsection{Simple Table}

\begin{tabular}{|l|c|r|}
\hline
Name & Age & Score \\
\hline
Alice & 30 & 95 \\
Bob & 25 & 87 \\
Charlie & 35 & 92 \\
\hline
\end{tabular}

\subsection{Table with Caption}

\begin{table}[h]
\centering
\begin{tabular}{|c|c|}
\hline
Column 1 & Column 2 \\
\hline
Data 1 & Data 2 \\
Data 3 & Data 4 \\
\hline
\end{tabular}
\caption{Sample table with caption}
\end{table}

\end{document}
